package com.intelligent.bot.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * key消耗配置
 * @TableName key_number_config
 */
@Data
@TableName(value ="key_number_config")
public class KeyNumberConfig implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * gpt3消耗
     */
    private Integer gptNumber;

    /**
     * gpt4消耗
     */
    private Integer gpt4Number;
    /** SPARK_V2
     * 星火V2模型消耗数量
     */
    private Integer sparkV2;
    /**
     * 星火V3模型消耗数量
     */
    private Integer sparkV3;

    /**
     * gpt画图消耗
     */
    private Integer gptOfficialNumber;

    /**
     * mj画图消耗
     */
    private Integer mjNumber;

    /**
     * mj文生图极速模式
     */
    private Integer mjNumberFast;

    /**
     * mj文生图涡轮模式
     */
    private Integer mjNumberTurbo;

    /**
     * mj变换消耗
     */
    private Integer mjVNumber;

    /**
     * mj放大
     */
    private Integer mjUNumber;

    /**
     * mj文生图消耗
     */
    private Integer mjDecNumber;

    /**
     * mj混合生图消耗
     */
    private Integer mjBlendNumber;

    /**
     * sd画图消耗
     */
    private Integer sdNumber;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        KeyNumberConfig other = (KeyNumberConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGptNumber() == null ? other.getGptNumber() == null : this.getGptNumber().equals(other.getGptNumber()))
            && (this.getGpt4Number() == null ? other.getGpt4Number() == null : this.getGpt4Number().equals(other.getGpt4Number()))
            && (this.getGptOfficialNumber() == null ? other.getGptOfficialNumber() == null : this.getGptOfficialNumber().equals(other.getGptOfficialNumber()))
            && (this.getMjNumber() == null ? other.getMjNumber() == null : this.getMjNumber().equals(other.getMjNumber()))
            && (this.getMjNumberFast() == null ? other.getMjNumberFast() == null : this.getMjNumberFast().equals(other.getMjNumberFast()))
            && (this.getMjNumberTurbo() == null ? other.getMjNumberTurbo() == null : this.getMjNumberTurbo().equals(other.getMjNumberTurbo()))
            && (this.getMjVNumber() == null ? other.getMjVNumber() == null : this.getMjVNumber().equals(other.getMjVNumber()))
            && (this.getMjUNumber() == null ? other.getMjUNumber() == null : this.getMjUNumber().equals(other.getMjUNumber()))
            && (this.getMjDecNumber() == null ? other.getMjDecNumber() == null : this.getMjDecNumber().equals(other.getMjDecNumber()))
            && (this.getMjBlendNumber() == null ? other.getMjBlendNumber() == null : this.getMjBlendNumber().equals(other.getMjBlendNumber()))
            && (this.getSdNumber() == null ? other.getSdNumber() == null : this.getSdNumber().equals(other.getSdNumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGptNumber() == null) ? 0 : getGptNumber().hashCode());
        result = prime * result + ((getGpt4Number() == null) ? 0 : getGpt4Number().hashCode());
        result = prime * result + ((getGptOfficialNumber() == null) ? 0 : getGptOfficialNumber().hashCode());
        result = prime * result + ((getMjNumber() == null) ? 0 : getMjNumber().hashCode());
        result = prime * result + ((getMjNumberFast() == null) ? 0 : getMjNumberFast().hashCode());
        result = prime * result + ((getMjNumberTurbo() == null) ? 0 : getMjNumberTurbo().hashCode());
        result = prime * result + ((getMjVNumber() == null) ? 0 : getMjVNumber().hashCode());
        result = prime * result + ((getMjUNumber() == null) ? 0 : getMjUNumber().hashCode());
        result = prime * result + ((getMjDecNumber() == null) ? 0 : getMjDecNumber().hashCode());
        result = prime * result + ((getMjBlendNumber() == null) ? 0 : getMjBlendNumber().hashCode());
        result = prime * result + ((getSdNumber() == null) ? 0 : getSdNumber().hashCode());
        return result;
    }
}